﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="OverTimeTasks.aspx.cs" Inherits="Task_OverTimeTasks" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        未办年检查询
    </h2>
    <div class="searchcondition">
        <table class="searchtb">
            <tr>
                <td>
                    分行&nbsp;<asp:DropDownList ID="BranchList" runat="server" DataSourceID="ObjectDataSource1"
                        DataTextField="BranchName" DataValueField="BranchID" AutoPostBack="True" 
                        onselectedindexchanged="BranchList_SelectedIndexChanged">
                    </asp:DropDownList>
                    &nbsp; 员工&nbsp;<asp:DropDownList ID="EmpolyeeList" runat="server" 
                        DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="EmpolyeeID">
                    </asp:DropDownList>
                    &nbsp; 年份&nbsp;<asp:TextBox ID="AuditYear" runat="server"></asp:TextBox>&nbsp; 月份
                    &nbsp;<asp:DropDownList runat="server" ID="AuditMonth">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp;<asp:Button runat="server" Text="查询" onclick="Unnamed1_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:ListView ID="ListView1" runat="server">
        <LayoutTemplate>
            <table class="commongv">
                <tr>
                    <th style="width:70px">
                        注册日期
                    </th>
                    <th>
                        注册地
                    </th>
                    <th>
                        公司英文名
                    </th>
                    <th>
                        公司中文名
                    </th>
                    <th>
                        公司编号
                    </th>
                    <th>
                        业务
                    </th>
                    <th>
                        参考价
                    </th>
                    <th>
                        客户姓名
                    </th>
                    <th>
                        来源报单
                    </th>
                </tr>
                <tr runat="server" id="itemPlaceHolder">
                </tr>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Label runat="server" ID="Label1" Text='<%# Eval("注册日期","{0:yyyy-MM-dd}")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label6" Text='<%# Eval("注册地")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label2" Text='<%# Eval("公司英文名")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label3" Text='<%# Eval("公司中文名")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label4" Text='<%# Eval("公司注册号")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label5" Text='<%# Eval("业务类型")%>'></asp:Label>
                </td>
                <td>
                    [<asp:Label runat="server" ID="Label9" Text='<%# Eval("参考价币种")%>'></asp:Label>]<asp:Label runat="server" ID="Label7" Text='<%# Eval("参考成交价","{0:0}")%>' ForeColor="#FFE"></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label12" Text='<%# Eval("客户姓名")%>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" ID="Label8" Text='<%# Eval("来源单号")%>'></asp:Label>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetBranches" TypeName="Koonsoft.HYCRM.BLL.BranchBLL"></asp:ObjectDataSource>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>" 
        SelectCommand="Empolyee_GetEmpolyeesByBranchID" 
        SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="BranchList" Name="branchID" 
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
